<head>
    <title></title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  <style>
  textarea, button {display: block}
</style>
</head>
<b style="color:red">RMB 价格 = 原价格 * 7.5 （未加运费）</b>
<table class="table">
  <tr>
    <th>图片</th>
    <th>产品名称</th>
    <th>价格</th>
    <th>库存</th>
  </tr>
  <tbody>
    <?php foreach ($products as $product) { ?>
    <tr>
      <td><a href="https://target.scene7.com/is/image/Target/{$product.images.0.primary}?wid=500&hei=500&qlt=80&fmt=pjpeg">
        <img src="https://target.scene7.com/is/image/Target/{$product.images.0.primary}?wid=100&hei=100&qlt=80&fmt=pjpeg">
      </a></td>
      <td>{$product.title}</td>
      <td>{$product.list_price.price}USD (~<?php echo number_format($product['list_price']['price'] * 7.5, 2) . 'RMB' ?>)</td>
      <td>{$product.availability_status}</td>
    </tr>
    <?php } ?>
  </tbody>
</table>
